<?php

Router::connect('/', array('controller' => 'pages', 'action' => 'home'));

Router::connect('/admin/:controller/:action/*', array('admin' => true));

Router::connect('/categories/:action/*', array('controller' => 'categories'));
Router::connect('/control_panel/:action/*', array('controller' => 'control_panel'));
Router::connect('/groups/:action/*', array('controller' => 'groups'));
Router::connect('/listing_tags/:action/*', array('controller' => 'listing_tags'));
Router::connect('/listings/:action/*', array('controller' => 'listings'));
Router::connect('/locations/:action/*', array('controller' => 'locations'));
Router::connect('/reviews/:action/*', array('controller' => 'reviews'));
Router::connect('/pages/:action/*', array('controller' => 'pages'));
Router::connect('/system_redirects/:action/*', array('controller' => 'system_redirects'));
Router::connect('/users/:action/*', array('controller' => 'users'));
//Router::connect('/inits/:action/*', array('controller' => 'inits')); // needed only for ACL init_db

Router::connect('/inits/:action/*', array('controller' => 'inits'));

Router::connect(
	'/tags/:url_title/*',
	array(
		'controller' => 'listing_tags',
		'action' => 'view',
		'url_title' => null
	),
	array(
		'pass' => array('url_title')
	)
);


Router::parseExtensions('html');

Router::connect('/*', array('controller' => 'inits', 'action' => 'parse_request'));
Router::connectNamed(array('ind'));
